Skip to content

Conversation

mohammed-rampurawala
Copy link

  • Compressor.java : Added method for compressing and copying the image using the Uri.
  • ImageUti.java : Method to fetch and compress the image using the Uri.

…e using the Uri.

- ImageUti.java : Method to fetch and compress the image using the Uri.
BitmapFactory.decodeStream(inputStream, null, options);

// Calculate inSampleSize
options.inSampleSize = calculateInSampleSize(options, reqWidth, reqHeight);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the calculate sample size method?

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

private static int calculateInSampleSize(BitmapFactory.Options options, int reqWidth, int reqHeight) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it, thanks 😃

Copy link

@DeekshithRajBasa DeekshithRajBasa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where is the method calculate in image size

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants